Skip to main content

Balance

Displays the balance of a given address in the native token (APT).

Screenshot

Balance Example

Usage

import { Balance } from "~~/components/scaffold-move";
import { useWallet } from "@aptos-labs/wallet-adapter-react";

const { account, connected } = useWallet();
<Balance address={account?.address as string} />

Parameter

ParameterTypeDefault ValueDescription
addressstringundefinedAddress in 0x___ format.
className (optional)string""Prop to pass additional CSS styling to the component, where you can use Tailwind / daisyUI classes for styling.